home *** CD-ROM | disk | FTP | other *** search
- Path: news.lpr.carel.fi!usenet
- From: Ari Lukumies <aril@cmt.lpr.mail.carel.fi>
- Newsgroups: comp.lang.c
- Subject: Re: File Based linked list
- Date: Tue, 20 Feb 1996 11:00:09 +0200
- Organization: Carelcomp Forest
- Message-ID: <31298D99.7D0F@cmt.lpr.mail.carel.fi>
- References: <Pine.SOL.3.90.960219171637.21117B-100000@eddie>
- NNTP-Posting-Host: renoir.cclahti.carel.fi
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b6a (WinNT; I)
-
- Khan Riaz Ahmad wrote:
- >
- > Anyone know how to write a file based linked list... How
- > different is it to implement then a regular memory based linked list??
- > Any source code would be greatly appriciated... BTW I am a student and I
- > need it for an assignment...
- >
- > Thanks
- >
- > Ray
- > U of T Comp Sci
-
- The easy way: use the file as you use a linked list in memory. Only, where you use a
- pointer in the memory list, you'd use a file-offset in the file list. Deletion,
- space-reallocation and garbage collection would require a little more work, though :)
-
- Later,
- AriL
- --
- All my opinions are mine and mine alone.
-